package org.patterns.structural.proxy;


public class Client {
    public static void main(String[] args) {
        //针对抽象编程，客户端无须分辨真实主题类和代理类
        Searcher searcher = (Searcher) XMLUtil.getBean();
        String result = searcher.doSearch("杨过", "玉女心经");
        System.out.println(result);
        System.out.println("********************");
        result = searcher.doSearch("张无忌", "九阳真经");
        System.out.println(result);
    }
}
